package strategy;

public class CashRebate implements CashStrategy {
    private double moneyRebate = 1;

    public CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double calculateCash(double money) {
        return money * moneyRebate;
    }
}
